//
//  Global.h
//  HJBIPAD
//
//  Created by LiYinDi on 14-11-16.
//  Copyright (c) 2014年 RuiBen. All rights reserved.
//

#import <Foundation/Foundation.h>
//#import "MBProgressHUD.h"
@interface Global : NSObject

//+(void)showTextHud:(NSString*)message view:(UIView *)view;
//+(void)showIndeterminateHud:(NSString*)text delay:(int)delay view:(UIView *)view;
//+(void)hideProgressHUDInternal:(UIView *)view;
//
//+(void)showTextHudSub:(NSString*)message view:(UIView *)view;
//+(void)showIndeterminateHudSub:(NSString*)text delay:(int)delay view:(UIView *)view;

+ (NSDate *)dateByAddingComponents:(NSDate *)selectedDate
                               day:(NSInteger)days;
+ (NSString *)stringFromChangeDate:(NSDate *)date;
+(NSString *)getLoginToken;
+(void)setLoginToken:(NSString *)token;

+(NSString *)getScanResultStr;
+(void)setScanResultStr:(NSString *)resultStr;

+(NSString *)getSelectedGoodType;
+(void)setSelectedGoodType:(NSString *)typeStr;

//融云token
+(NSString *)getRongYunToken;
+(void)setRongYunToken:(NSString *)ryToken;

//各界面类型的传值
+(NSString *)getType;
+(void)setType:(NSString *)typeString;
//下单界面ptype(传给后台)
+(NSString *)getPlaceOrderPType;
+(void)setPlaceOrderPType:(NSString *)typeString;

//扫描界面的标题
+(NSString *)getScanTitle;
+(void)setScanTitle:(NSString *)titleString;

////扫描界面的类型
//+(NSString *)getScanType;
//+(void)setScanType:(NSString *)typeString;

//转账的
+(NSString *)getAccountCode;
+(void)setAccountCode:(NSString *)accountCode;

+(NSString *)getAccountName;
+(void)setAccountName:(NSString *)accountName;

+(NSString *)floatConvertPercentile:(double)doubleValue;

+(NSString *)getPhoneNumber;
+(void)setPhoneNumber:(NSString *)phoneNum;
+(NSString *)theStartOfMonth:(NSDate *)selectedDate;
+(NSString *)theEndOfMonth:(NSDate *)selectedDate;
+(UIColor *)parseColor:(NSString *)hexColor;

+(NSString *)getMemberID;
+(void)setMemberID:(NSString *)memberID;
+(NSString *)standardUserDefaults :(NSDictionary *)Dic;

+(NSString *)getJudgeTheErrorStr :(NSString *)Str;

//+(NSString *)getStringFromDict :(NSDictionary *)Dic :(NSString *)Str;

@end
